package io.github.topcatv.mall.common.exception;

/**
 * @author liuyi
 */

public enum BizErrorEnum {
    /**
     * 未知的问题
     */
    UNKNOW("未知问题", -1),
    USER_EXIST("用户已存在", 100);

    private String message;
    private int errorCode;

    BizErrorEnum(String message, int errorCode) {
        this.message = message;
        this.errorCode = errorCode;
    }

    public String getMessage() {
        return message;
    }

    public int getErrorCode() {
        return errorCode;
    }
}
